Add TitleCase Implementation#7473
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7473 +/- ##
============================================
+ Coverage 79.89% 79.90% +0.01%
- Complexity 7344 7349 +5
============================================
Files 809 810 +1
Lines 23850 23867 +17
Branches 4699 4703 +4
============================================
+ Hits 19055 19072 +17
+ Misses 4036 4035 -1
- Partials 759 760 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hey folks, just checking in on this PR — it's been a few days. Happy to make any changes if something needs to be adjusted. Let me know! |
There was a problem hiding this comment.
Pull request overview
This PR introduces a new string utility for converting input text into title case within com.thealgorithms.strings, along with a JUnit test suite to validate the behavior.
Changes:
- Added
TitleCase.toTitleCase(String)utility to capitalize the first letter of each word and lowercase the remaining letters. - Added
TitleCaseTestcovering null/empty input, single/multiple words, and whitespace preservation.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/main/java/com/thealgorithms/strings/TitleCase.java | Adds the TitleCase utility implementation for title-casing strings. |
| src/test/java/com/thealgorithms/strings/TitleCaseTest.java | Adds unit tests validating TitleCase.toTitleCase behavior across common input shapes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
addb081 to
1d1204c
Compare
1d1204c to
69e8eee
Compare
|
Hi, just wanted to follow up on this PR — all the requested changes have been addressed and comments resolved. Could you take another look when you get a chance? Happy to make any further adjustments if needed. Thanks! |
clang-format -i --style=file path/to/your/file.java